switch: Fix build
authorTimm Bäder <mail@baedert.org>
Mon, 16 Jan 2017 20:01:59 +0000 (21:01 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 16 Jan 2017 20:01:59 +0000 (21:01 +0100)
Partial revert of 2b6b5c1c8fecdd66172516812ed3f1825619dafc, which
removed a little too much.

gtk/gtkswitch.c

index ede2fc483c2e0c70c4281080ace85714e66ecd2d..cc2e1ff96fbac99b7759b1efc014d2d66fe8f379 100644 (file)
@@ -191,7 +191,9 @@ gtk_switch_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
                                        GtkSwitch            *sw)
 {
   GtkSwitchPrivate *priv = sw->priv;
+  GtkAllocation allocation;
 
+  gtk_widget_get_allocation (GTK_WIDGET (sw), &allocation);
   gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
 
   /* If the press didn't happen in the draggable handle,